package com.haste.config;

import com.haste.bean.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan
public class MainConfig {

    @Bean
    public Person person1(){
        return new Person("李四",20);
    }
}
